#include <iostream>

class Student
{
    public:
    void setId(int id)
    {
        m_id = id;
    }
    int getId()
    {
        return m_id;
    }
    void setName(const char *name)
    {
        m_name = name;
    }
    const char * getName()
    {
        return m_name;
    }
    void display()
    {
        std::cout<<"id="<<m_id<<",name"<<m_name<<std::endl;
    }
    private:
    int m_id;
    const char * m_name;
};

int main()
{
    Student stu;
    stu.setName("xiaoming");
    stu.setId(15);
    stu.display();
    
    return 0;
}